package com.physics.mps.entity.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author mcsoft
 */
@Documented
@Constraint(validatedBy = AppParamValidator.class)
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidAppParam {
    String message() default "Invalid value based on type";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
